function agregarCon()
{
    var vol=document.createElement('option');
    var cmb1=document.getElementById("conductores");
    var cmb2=document.getElementById("noconductores");
    vol.text = cmb2.options[cmb2.selectedIndex].text;
    cmb1.add(vol,null);
    cmb2.remove(cmb2.selectedIndex);
}

function quitarCon()
{
    var vol=document.createElement('option');
    var cmb1=document.getElementById("conductores");
    var cmb2=document.getElementById("noconductores");
    vol.text = cmb1.options[cmb1.selectedIndex].text;
    cmb2.add(vol,null);
    cmb1.remove(cmb1.selectedIndex);
}

function enviar()
{
    var cmb2=document.getElementById("conductores");
    var datos=document.getElementById("cond");

    datos.value = "";
    
    for(i=0;i<cmb2.length;i++)
    {
        datos.value =datos.value +","+  cmb2.options[i].text;
    }
}